package com.beagle.njddapp.base;

import com.beagle.njddapp.bean.dirver.OilOrderState;
import com.beagle.njddapp.bean.owner.DIrverOrderBean;
import com.beagle.njddapp.net.BaseOilHttpListResponse;
import com.beagle.njddapp.net.BaseOilHttpResponse;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.POST;
import retrofit2.http.Path;

/**
 * @author hxx
 * @date 2021-03-15 19:58
 * 农机驾驶员相关接口
 */
public interface DirverApiService {
    /**
     * 农机车驾驶员-获取订单列表
     * @return
     */
    @POST("app/api/orderMgt/queryOrderListByDriver/{pageSize}/{pageNo}")
    Observable<BaseOilHttpListResponse<DIrverOrderBean>> queryOrderListByDriver(@Path("pageSize") String pageSize, @Path("pageNo") String pageNo, @Body RequestBody body);


    /**
     * 农机车驾驶员-提交加油订单
     * @return
     */
    @POST("app/api/worker/fuel/createRequest")
    Observable<BaseOilHttpResponse> createRequest(@Body RequestBody body);



    /**
     * 农机车驾驶员-农机加油状态
     * @return
     */
    @POST("app/api/worker/fuel/meshState")
    Observable<OilOrderState> meshState(@Body RequestBody body);


    /**
     * 农机车驾驶员-农机加油状态
     * @return
     */
    @POST("app/api/orderMgt/deviceGiveBack")
    Observable<BaseOilHttpResponse> deviceGiveBack(@Body RequestBody body);



    /**
     * 农机车驾驶员-更新订单作业时间
     * @return
     */
    @POST("app/api/orderMgt/updateFindDriverOrderDate")
    Observable<BaseOilHttpResponse> updateFindDriverOrderDate(@Body RequestBody body);


}
